package com.sanjiahantang.youjiarole.module.common.beans;

import com.google.gson.Gson;
import com.sanjiahantang.youjiarole.base.BaseBean;

import java.util.List;

/**
 * Created by admin on 2017/11/2.
 */

public class CustomerBean extends BaseBean {


    /**
     * data : {"list":[{"customerPhone":"15510563729","address":"北京市北京市东城区","rolePhone":"15123865429","roleId":"15123865422","userName":"张三"}],"page":0,"pageSize":10,"totalCount":1,"totalPage":1}
     */

    private String data;

    public Data getData() {
        return new Gson().fromJson(data,Data.class);
    }

    public void setData(String data) {
        this.data = data;
    }

    public static class Data extends ListBean {

        private List<Item> list;

        public List<Item> getList() {
            return list;
        }

        public void setList(List<Item> list) {
            this.list = list;
        }
    }

    public static class Item {

        public String customerPhone;
        public String address;
        public String rolePhone;
        public String roleId;
        public String userName;

        public String state;

        public String getState() {
            return state;
        }

        public void setState(String state) {
            this.state = state;
        }

        public String getCustomerPhone() {
            return customerPhone;
        }

        public void setCustomerPhone(String customerPhone) {
            this.customerPhone = customerPhone;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        public String getRolePhone() {
            return rolePhone;
        }

        public void setRolePhone(String rolePhone) {
            this.rolePhone = rolePhone;
        }

        public String getRoleId() {
            return roleId;
        }

        public void setRoleId(String roleId) {
            this.roleId = roleId;
        }

        public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }
    }
}
